/**
 * @license
 * Copyright 2024 The Model Explorer Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ==============================================================================
 */

.container {
  display: flex;
  align-items: center;
  margin-right: 3px;

  .mat-icon-container {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    &.disabled {
      cursor: default;
      opacity: 0.5;

      mat-icon:hover {
        opacity: 0.6;
      }
    }
  }

  mat-icon.toolbar-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    opacity: 0.85;

    &:hover {
      opacity: 1;
    }
  }

  .snapshots-container {
    display: flex;
    align-items: center;
    font-size: 11px;
    margin-left: 6px;
    margin-right: 6px;
    gap: 2px;

    .snapshot {
      width: 16px;
      height: 16px;
      border-radius: 8px;
      background-color: var(--me-primary-color);
      color: var(--me-on-primary-color);
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 500;
      cursor: pointer;
      opacity: 0.7;

      &:hover,
      &.clicked {
        opacity: 1;
      }
    }
  }
}

::ng-deep .model-explorer-snapshot-popup {
  font-size: 11px;
  line-height: 12px;
  color: var(--me-on-surface-color);
  background-color: var(--me-surface-container-low-color);

  .info-row {
    color: var(--me-on-surface-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--me-surface-container-color);
    padding: 4px 8px;
    border-bottom: 1px solid var(--me-outline-variant-color);

    .icon-container {
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0.8;

      &:hover {
        opacity: 1;
      }

      mat-icon {
        font-size: 18px;
        width: 18px;
        height: 19px;
      }
    }
  }

  canvas {
    opacity: 0;
    transition: opacity 200ms ease-out;

    &.show {
      opacity: 1;
    }
  }
}
